package model

type RolesAddRes struct {
	RoleName string `json:"role_name" form:"role_name"`
	Powers   []uint `json:"powers" form:"powers"`
	Describe string `json:"describe" form:"describe"`
}

type RolesId struct {
	Id uint `json:"id" form:"id"`
}

type RolesUpdateRes struct {
	RolesId
	RoleName string `json:"role_name" form:"role_name"`
	Powers   []uint `json:"powers" form:"powers"`
	Describe string `json:"describe" form:"describe"`
}

type RolesListRes struct {
	PageSize
	Query string `json:"query" form:"query"`
	Type  string `json:"type" form:"type,default=\"all\""`
}

type RolesListResp struct {
	Id       uint   `json:"id"`
	RoleName string `json:"role_name"`
	Describe string `json:"describe"`
	IsCustom bool   `json:"is_custom"`
	Powers   []uint `json:"powers"`
}

type RoleUriLable struct {
	RolesId
	Label string          `json:"label" form:"label"`
	Uri   string          `json:"uri" form:"uri"`
	Value []*RoleUriLable `json:"value"`
}
